package com.vois.jack.btmgr.blebase;

import android.os.Bundle;

public class BleAction {
    public enum BleCmd {
        BLE_CMD_WRITE_RELIABLE,
        BLE_CMD_WRITE_DATA,
        BLE_CMD_READ_DATA,
        BLE_CMD_ENABLE_NOTIFICATION,
        BLE_CMD_ENABLE_INDICATION,
        BLE_CMD_WRITE_DESCRIPTOR,
        BLE_CMD_READ_DESCRIPTOR,
        BLE_CMD_READ_RSSI,
        BLE_CMD_REQUEST_MTU
    }

    public interface BleActionCallback {
        void onActionResult(int status, Bundle result);
    }

    BleCmd cmd;
    Bundle cmdArg;
    BleActionCallback callback;

    public BleCmd getCmd() {
        return cmd;
    }

    public void setCmd(BleCmd cmd) {
        this.cmd = cmd;
    }

    public Bundle getCmdArg() {
        return cmdArg;
    }

    public void setCmdArg(Bundle cmdArg) {
        this.cmdArg = cmdArg;
    }

    public BleActionCallback getCallback() {
        return callback;
    }

    public void setCallback(BleActionCallback callback) {
        this.callback = callback;
    }
}
